const mongoose = require('mongoose');

const PostCategorySchema = new mongoose.Schema({
  categoryId: { type: String, required: true },
  name: { type: String, required: true },
  flag: { type: Boolean, default: true },
  createdAt: { type: Date, default: Date.now },
  updatedAt: { type: Date, default: Date.now }
});

module.exports = mongoose.model('PostCategory', PostCategorySchema);
